import request from '@/utils/request'
/**
 * 获取学校列表
 * @param params
 * @returns {*}
 */
export function bakGetSchoolListApi(params) {
  return request({
    url: '/bakGetSchoolList',
    method: 'GET',
    params
  })
}

/**
 * 根据ID查询
 * @param params
 * @returns {*}
 */
export function bakGetSchoolByIdApi(params) {
  return request({
    url: '/bakGetSchoolById',
    method: 'GET',
    params
  })
}



/**
 * 编辑
 * @param params
 * @returns {*}
 */
export function editSchoolApi(data) {
  return request({
    url: '/editSchool',
    method: 'POST',
    data
  })
}

/**
 * 根据ID删除
 * @param params
 * @returns {*}
 */
export function deleteSchoolApi(params) {
  return request({
    url: '/deleteSchool',
    method: 'POST',
    params
  })
}
/**
 * 获取专业列表
 * @param params
 * @returns {*}
 */
export function bakGetSpecialityListApi(params) {
  return request({
    url: '/bakGetSpecialityList',
    method: 'GET',
    params
  })
}

/**
 * 编辑
 * @param params
 * @returns {*}
 */
export function editMajorApi(params) {
  return request({
    url: '/editMajor',
    method: 'POST',
    params
  })
}


/**
 * 根据ID查询
 * @param params
 * @returns {*}
 */
export function bakGetMajorByIdApi(params) {
  return request({
    url: '/bakGetMajorById',
    method: 'GET',
    params
  })
}

/**
 * 根据ID删除
 * @param params
 * @returns {*}
 */
export function deleteMajorApi(params) {
  return request({
    url: '/deleteMajor',
    method: 'POST',
    params
  })
}
